package com.service;

import com.mapper.RecordMapper;
import com.pojo.Friend;
import com.pojo.Record;
import com.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RecordServiceImpl implements RecordService {
    @Autowired
    private RecordMapper recordMapper;
    @Override
    public List<Record> list(User user) {
        return recordMapper.list(user);
    }

    @Override
    public int add(Record record) {
        return recordMapper.add(record);
    }
}
